Skip to content

Improving I/O consumption for TIFF-based formats#237

Merged
rcpalacio merged 2 commits intomasterfrom
improve-support-tiff-based-formats
May 31, 2023
Merged

Improving I/O consumption for TIFF-based formats#237
rcpalacio merged 2 commits intomasterfrom
improve-support-tiff-based-formats

Conversation

@rcpalacio
Copy link
Copy Markdown
Contributor

@rcpalacio rcpalacio commented May 30, 2023

All parsers for TIFF-based formats were loading embedded thumbnails alongside exif data, which was blowing the IO budget for large images.

This upgrades the dependency EXIFR that now allows us to skip this step.

(the actual work was done here)

…ed formats. This was blowing the IO budget for large images.
Copy link
Copy Markdown
Contributor

@linkyndy linkyndy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for syncing with the other library 💪

Just a small remark; feel free to move forward if you disagree with it.

Measurometer.instrument('format_parser.exif_parser.exif_from_tiff_io') do
extended_io = IOExt.new(constrained_io)
exif_raw_data = EXIFR::TIFF.new(extended_io)
exif_raw_data = EXIFR::TIFF.new(extended_io, load_thumbnails: false)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question: could it be useful to provide this as a config for the library? I can imagine some might actually need those thumbnails.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean via intrinsics? That is a good point. I'll change this.
On this: are the intrinssics something we want to maintaining stable across multiple versions?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily, just a way to configure this when using the library.

On the intrinsics, I think it would be nice, though I wouldn't consider it as a priority.

@rcpalacio rcpalacio merged commit 8d2e187 into master May 31, 2023
@rcpalacio rcpalacio deleted the improve-support-tiff-based-formats branch May 31, 2023 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants